package Agenda;

import java.util.Scanner;

public class Agenda {
    public static void main(String[] args){
        String nomes[]= new String[10];
        String enderecos[]= new String[10];
        String telefones[]= new String[10];

        Scanner entrada = new Scanner(System.in);
        for(int c=0; c<10; ++c){
            System.out.println("Nome: ");
            nomes[c]=entrada.nextLine();
            if(nomes[c].equals("")) break;
            System.out.println("Endereço: ");
            enderecos[c]=entrada.nextLine();
            System.out.println("Telefone: ");
            telefones[c]=entrada.nextLine();
        }
        for(int c=0; c<10; ++c){
           if(nomes[c].equals("")) break;
           System.out.println(nomes[c]+" - "+
                   enderecos[c]+" - "+telefones[c]);
        }
    }
}
